<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.HashMap" %>
    <%
    	//On rꤵp鳥 la liste des cookies
    	Cookie[] cookies = request.getCookies();
    	HashMap map = new HashMap();
    	//S'il y a au moins un cookie, on stocke les cl곭valeurs dans une Map
    	if(cookies != null){	    	
	    	for(Cookie cookie : cookies){
	    		map.put(cookie.getName(), cookie.getValue());
	    	}
    	}
    	
    	//Ainsi, si des donn꦳ existent, on pourra pr곥mplir les champs de notre formulaire
    %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ADAI Toulouse</title>
<LINK REL=StyleSheet type="text/css" HREF="page1.css" TITLE="Contemporary">
</head>
<body >
<form method="POST" action="/adai_toulouse/SConnexion">
<div style="width:100%; height:100%; left:0px; top:0px; position: absolute; z-index: 0;">
<img src="image/arriere_plan.jpg" style="width: 100%; height: 100%;" />
</div>

 
<div style="z-index: 1; position: absolute;width:100%; height:100%; left:auto; top:0px;" >
    <div id ="espace1">	</div>
	<div id="header" align="center">
		<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		IPESTien un jour , ADAIien pour toujours </blockquote>
	</div>
	<div id ="espace1"></div>
	<div id="milieu">
		<div id="leftmenu">
			<!--<div id="op1" align="center"> &nbsp Menu </div>-->
			<div id="lmenu1">
				<table width="100%" border="0" cellpadding="1" cellspacing="1">
					<tr align="center"><td> <a href="pageIni.html" class="bouton">Acceuil </a></td></tr>
					<tr align="center"><td> <a href="" class="bouton"> ADAI </a></td></tr>
					<tr align="center"><td> <a href="" class="bouton"> IPEST </a></td></tr>
					<tr align="center"><td> <a href="" class="bouton"> Membres </a></td></tr>
					<tr align="center"><td> <a href="Article.html" class="bouton"> Articles </a> </td></tr>
					<tr align="center"><td> <a href="activite.html" class="bouton">  Activit고</a></td></tr>
					<tr align="center"><td> <a href="" class="bouton"> Guides </a></td></tr>
					<tr align="center"><td> <a href="" class="bouton"> Ecoles d'ingꯩeurs ࡔoulouse </a></td></tr>
				</table>
				<br>
			</div>
			<!--<div id="op1" align="center"> &nbsp Page Facebook </div> -->
			<div id ="lmenu2">
				<div align="center">
					<a href="http://www.facebook.com/groups/107662989279122/"> <img src="image/icone_fb.png" align="middle" vspace="50"> <br/></a>
           		</div>
           	</div>  		
		</div>
		<div id="rightmenu">
			<div id="op2"> &nbsp Espace Utilisateur </div>
			<div id="rmenu1">
				<table width="100%" border="0" cellpadding="1" cellspacing="1">
					<tr align="center"><td> <a href="Connexion.jsp" class="bouton1"> Se connecter </a> </td></tr>
					<tr align="center"><td> <a href="form.html" class="bouton1"> S'enregistrer </a></td></tr>
				</table>
			</div>
			<div id="op2"> &nbsp Espace Membre </div>
			<div id="rmenu2">
				<table width="100%" border="0" cellpadding="1" cellspacing="1">
					<tr align="center"><td> <a href="Connexion.jsp" class="bouton1"> Se connecter </a></td></tr>
					<tr align="center"><td> <a href="EnrgMembre.html" class="bouton1"> S'enregistrer </a></td></tr>
				</table>
			</div>
			<div align="center">
			<div id="op2"> &nbsp Nos Partenaires </div>
				<a href="http://www.societegenerale.fr/"> <img src="image/Societe_Generale.jpg" align="middle" height="50" 
				vspace="20" width="50"> </a><br>
				<a href="http://www.verdie-autocars.com/"> <img src="image/logo_verdie.png" align="middle" height="70" 
				vspace="0" width="80"> </a>
			</div>
		</div>
		<div id="page">
		<br/>
		<br/>
		<%String s = (String) application.getAttribute("etat");%>
		<%=s %>
		<br/>
		<br/>
<table 
		style="
			margin:auto; 
			margin-top:50px;
			border-collapse:collapse;
			width:350px;
			text-align:right">
		
		<thead>
			<tr>
				<td 
					colspan=2 
					style="
						background-color:#404AA4;
						color:white;
						font-weight:bold;
						text-align:center"
					>Connexion</td>
			</tr>
		</thead>
		
		<tbody
			style="
				background-color:#AAB0DF;
				border-radius-bottom-left:5px;
				border-radius-bottom-right:5px;"
			>
			<tr>
				<td>Login : </td>
				<td style="text-align:left;padding-left:20px">
					<input type="text" name="login" value="<%=((map.get("login") != null) ? map.get("login") : "") %>"/> 
				</td>
			</tr>
			<tr>
				<td>Mot de passe : </td>
				<td style="text-align:left;padding-left:20px" >
					<input type="password" name="password"  value="<%=((map.get("login") != null) ? map.get("password") : "") %>"/> 
				</td>
			</tr>
			<tr>
				<td>Connexion automatique</td>
				<td style="text-align:left;padding-left:20px" >
					<input type="checkbox" name="auto_connect"  value="Y" <%=(((map.get("login") != null) && (map.get("login") != null)) ? "checked" : "") %>/> 
				</td>
			</tr>
			
			<tr>
				<td colspan="2" style="text-align:center">
					<input type="submit" name="Connexion" value="Connexion" id="Connexion" /></td>
			</tr>
		</tbody>
	</table>
			<br/>
 
		</div>
	</div>

    <div id ="espace1">	</div>
	<div id="footer">
		@mail: adai.toulouse31@gmail.com - Tꬠ: (+33)687901261 - Adresse: 161 rue Louis Plana 31500 TOULOUSE <br>
			</div>
</div>
</form>
</body>
</html>